import request from '@/api/useRequest'
const  publicPath = 'userInfo'
export function getInfo(){
    return request ({
        url:`${publicPath}/getInfo`,
        method:'get'
        
    })
}
export function save(data:any){
    return request({
        url:`${publicPath}/save`,
        method:'post',
        useCommonTip:true,
        data
    }as any)
}
export function getPageData(params:{page:string , pageSize:string}){
    return request ({
        url:`${publicPath}/getPageData`,
        method:'get',
        params
    })
}